{config_load file="config.conf" section="setup"}
{include file="header.tpl"}
{include file="header_body.tpl"}

<!-- START CONTENT -->
<section class="container clearfix">
    <!-- START PAGE INFO -->
    <header class="container page_info clearfix">

        <h1 class="regular brown bottom_line">Forum</h1>

        <div class="clear"></div>
    </header>

    <!-- END PAGE INFO -->

    <div class="padding15"></div>

    <div>
    {if $result==false}
        <div class="error_box">
            The categories could not be displayed, please try again later.
        </div>
    {else}
        {if $isCategoryDefined==false}
            <div class="error_box">
                No categories defined yet.
            </div>
        {else}
            <table class="forum" border="1">
               <tr>
                    <th>Category</th>
                    <th>Last topic</th>
               </tr>
                {section name=sec loop=$links_display}
                    <tr>
                    <td class="leftpart">';
                        {$links_display[sec]}
                    </td>
                    <td class="rightpart">'
                        {$topics[sec]}
                    </td>
                    </tr>

                {/section}
        {/if}
    {/if}
    </div>




    <div class="clear padding20"></div>


</section>
<!-- END CONTENT -->


{include file="footer.tpl"}